import { request } from '@/utils/request.js'

export function addIntegral(data) {
	return request({
		url: '/api/order/recharge/addIntegral',
		method: 'post',
		data: data
	});
}

export function getIntegral() {
	return request({
		url: '/api/order/recharge/getIntegral',
	});
}

export function getBalanceListByActivity() {
	return request({
		url: '/api/order/balance/getBalanceActivity',
	});
}

export function getBalanceList() {
	return request({
		url: '/api/order/balance/getBalanceList',
	});
}

export function getViewCount() {
	return request({
		url: '/api/system/getViewCount',
	});
}

export function getCollectCount() {
	return request({
		url: '/api/system/getCollectCount',
	});
}

export function getCollectList() {
	return request({
		url: '/api/system/getCollectList',
	});
}


export function cleanCollect(data) {
	return request({
		url: '/api/system/cleanCollect',
		method: 'post',
		data: data
	});
}

export function getViewList() {
	return request({
		url: '/api/system/getViewList',
	});
}

export function getRecommend(data) {
	return request({
		url: '/api/system/home/getRecommend',
		data: JSON.stringify(data)
	});
}

export function getSystemConfig() {
	return request({
		url: `/api/system/getSystemConfig?configCode=CUSTOMER_PHONE`,
	});
}